import { ColumnProps } from "/@/components/ProTable/interface";

// 配置项
const columns = (): Partial<ColumnProps>[] => {
    return [{
            type: "selection",
            width: 60,
            fixed: "left"
        },
        {
            type: "index",
            label: "#",
            width: 60
        },
        {
            prop: "name",
            label: "字典名称",
            search: true,
        },
        {
            prop: "value",
            label: "字典值",
            search: true,
        },
        {
            prop: "sort",
            label: "排序",
        },
        {
            prop: "operation",
            label: "操作",
            width: 330,
            fixed: "right"
        }
    ]
}

export default columns;